package com.uuah.server.component;

import com.uuah.server.api.component.IComponent;
import com.uuah.server.api.component.ILifecycleAdapter;
import com.uuah.server.api.component.ILifecycleAdapterFactory;
import com.uuah.server.api.component.model.IEntryPointResolverSet;
import com.uuah.server.exception.AbstractUuahServerException;

/**
 * <code>DefaultLifecycleAdapterFactory</code> creates a
 * DefaultLifeCycleAdapter. Users can implement their own LifeCycleAdapter
 * factories to control lifecycle events on their services such as introduce
 * other lifecycle events that are controlled by external changes.
 *
 * <p>
 * update record:updator，update time，update content and version
 * </p>
 *
 * @author <a href="jonny_quan@hotmail.com">jonny</a>
 * @date 2009 2009-3-27 上午09:51:01
 * @version 1.0.0
 */
public class LifecycleAdapterFactory implements ILifecycleAdapterFactory {

	public ILifecycleAdapter create(Object pojoService, IComponent component,
			IEntryPointResolverSet resolver) throws AbstractUuahServerException {
		return new LifecycleAdapter(pojoService, component, resolver);
	}

}
